package com.xy.modulemain.view

import android.content.Context
import android.view.View
import com.blankj.utilcode.util.ToastUtils

import com.xy.modulemain.BR
import com.xy.modulemain.R
import com.xy.modulemain.bean.Item
import com.xy.modulemain.databinding.TitleLayoutBinding

/**
 * @ClassName TitleItemView
 * @Author xy
 * @Date 2021/8/20 17:19
 * @Description 自定义view
 */
class TitleItemView : BaseCustomView<TitleLayoutBinding, Item> {
    constructor(context: Context?) : super(context)

    override fun getLayoutId(): Int {
        return R.layout.title_layout
    }

    override fun setDataToView(data: Item) {
        dataBinding.setVariable(BR.Item,data)
    }

    override fun onRootViewClick(view: View) {
        ToastUtils.showShort("点击了无图片的Item")
    }


}